package com.example.demo.service;

import com.example.demo.entity.UserElegance;
import com.example.demo.entity.UserTest;
import com.example.demo.mapper.UserEleganceMapper;
import com.example.demo.mapper.UserTestMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author: Bin.L
 * @date: 2021/3/12 0012 15:06
 * @Description:
 */

@Service
public class UserEleganceService {

    @Autowired
    private UserEleganceMapper userEleganceMapper;

    @Autowired
    private UserTestMapper userTestMapper;

    public int saveUserElegance(UserElegance userElegance) {
        return userEleganceMapper.insert(userElegance);
    }

    public int deleByid(int id){
        return userEleganceMapper.deleteById(id);
    }

    public int saveUserTest(UserTest userTest){
        return userTestMapper.insert(userTest);
    }
}
